package com.ljy.mapper;

import com.ljy.entity.ShopCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    @Select("select id, name from shop_category where status=1 order by sort")
    List<ShopCategory>list();
}
